import Home from "../pages/Home"
import Autoparty from "../pages/Autoparty"

import Createparty from "../pages/CreateParty"
import People from "../pages/People"
import My from "../pages/My"

import { AddCircleOutline,TextOutline ,UserOutline} from 'antd-mobile-icons'
const footerRouter=[{
    path:'/home/createparty',
    name:'创建报名',
    icon:<AddCircleOutline/>,
    element:<Createparty/>
},{
    path:'/home/people',
    name:'我的报名',
    icon:<TextOutline/>,
    element:<People/>
},{
    path:'/home/my',
    name:'个人中心',
    icon:<UserOutline/>,
    element:<My/>
}]

const routes=[{
    path:'/home',
    element:<Home/>,
    children:footerRouter
},{
    path:'/autoparty',
    element:<Autoparty/>
},{
    from:'/',
    to:'/home/createparty'
}]

export {
    footerRouter,
    routes
}